Tokens for For Each User
The For Each User activity produces the following tokens, which are available to activities placed inside it. The For Each User activity runs one time per user, group, or manager. Each time it runs, the token values reflect the information relevant to the user it is currently processing.
Note: If a user's Display Name is not set, the value for the user's Account Name is used for the Current User_Display Name token instead.
Name | Description | Sample Syntax* |
---|---|---|
Current User_Id | The current user's ID. | %(ForEachUser_Current User_Id) |
Current User_Display Name | The current user's Display Name. | %(ForEachUser_Current User_Display Name) |
Current User_Account Name | The current user's Account Name. | %(ForEachUser_Current User_Account Name) |
Current User_E-mail | The current user's e-mail address. | %(ForEachUser_Current User_E-mail) |
Current User_Is Group | Whether the current user is a group. This token can have one of two values: True or False. | %(ForEachUser_Current User_Is Group) |
Current User_Qualified Name | The current user's unique identifying name. | %(ForEachUser_Current User_Qualified Name) |
Current User_Working Folder | The current user's working folder. The working folder is the user's folder specified in the Find User, Find Group or Find Manager Folder Token Settings property box. If no folder is specified in this property box than the working folder is the default folder. | %(ForEachUser_Current User_Working Folder) |
Current User_Default Folder | The current user's default folder. | %(ForEachUser_Current User_Default Folder) |
Current User_Managers E-mail | The e-mail address(es) of the current user's manager(s). If the current user has more than one manager, their e-mails will be listed in a multi-value token. | %(ForEachUser_Current User_Managers E-mail) |
Iteration | The number of times the For Each User activity has run. | %(ForEachUser_Iteration) |
*The "ForEachUser" portion of the syntax changes to match the activity's name as specified in the Activity Name property box. Note that all non-alphanumeric characters, except underscores, are removed from the name. For example, if you rename the activity Distribute-to-User, the syntax for the Current User_Id token will be %(DistributetoUser_Current User_Id).